package com.usian.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.admin.dtos.NewsAuthDto;
import com.usian.model.common.dtos.PageResponseResult;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmNewsDto;
import com.usian.model.media.dtos.WmNewsPageReqDto;
import com.usian.model.media.pojos.WmNews;
import com.usian.model.media.pojos.WmUser;

import java.util.List;

public interface WmNewsService extends IService<WmNews> {

    public ResponseResult findList(WmNewsPageReqDto dto);

    public ResponseResult saveNews(WmNewsDto dto,Short type);

    public ResponseResult findById(Integer id);

    public ResponseResult delNews(Integer id);

    public ResponseResult downOrUp(WmNewsDto dto);


    public WmNews findByNewId(Integer id);

    public boolean updateNews(WmNews wmNews);

    public WmUser findByUserId(Integer id);

    public List<Integer> findWmnews();

    public PageResponseResult findListRengong(NewsAuthDto dto);

    public WmNews findDetail(Integer id);

    public ResponseResult auth(NewsAuthDto dto,int type);
}
